package com.zj.springcloud;

import com.zj.myrule.ZjRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

//ribbon和eureka整合以后，客户端可以直接调用方法,不用关系ip地址跟端口

@SpringBootApplication
@EnableEurekaClient //eureka客户端生效
// ribbon自定义配置 name指定服务 configuration指定自定义配置类
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT-8001",configuration = ZjRule.class)
public class DeptConsumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class, args);
    }
}
